chore(deps): update dependency django-stubs to v5 #54
+9
−19
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==4.2.6
->==5.2.7
Release Notes
typeddjango/django-stubs (django-stubs)
v5.2.7
Compare Source
What's Changed
Fixes a regression in django-stubs version 5.2.6:
Full Changelog: typeddjango/django-stubs@5.2.6...5.2.7
v5.2.6
Compare Source
What's Changed
Improvements
add_ordering
signature too by @UnknownPlatypus in #2822related_query_name
inModel._meta.get_fields
by @UnknownPlatypus in #2821strict_model_abstract_attrs
setting to allowmodels.Model.objects
access by @sobolevn in #2830_replace_type_var
that can potentially cause cache problems by @sobolevn in #2834union
/intersection
/difference
to support QuerySet usingvalues_list
andvalues
by @UnknownPlatypus in #2829log_action
deprecation notice by @UnknownPlatypus in #2839.values
/.values_list
calls by @UnknownPlatypus in #2836GenericPrefetch
by @UnknownPlatypus in #2851aget
calls by @UnknownPlatypus in #2856fields
argument tobulk_update
by @UnknownPlatypus in #2808Housekeeping & CI
mypy_primer
workflow by @sobolevn in #2819django.contrib.contenttypes
installed app in tests by @UnknownPlatypus in #2853pyproject.toml
by @intgr in #2847Ruff
ruff
to0.13.0
by @sobolevn in #2828uv
package manageruv
by @intgr in #2846uv_build
build system & cleanup by @intgr in #2848uv
workspace fordjango-stubs-ext
also by @intgr in #2857New Contributors
Full Changelog: typeddjango/django-stubs@5.2.5...5.2.6
v5.2.5
Compare Source
What's Changed
_StrPromise
returned byreverse_lazy
by @sobolevn in #2814.order_by
to accept anyCombinable
by @sobolevn in #2816Full Changelog: typeddjango/django-stubs@5.2.4...5.2.5
v5.2.4
Compare Source
What's Changed
TestClient.get
regression by @sobolevn in #2812Full Changelog: typeddjango/django-stubs@5.2.3...5.2.4
v5.2.3
Compare Source
What's Changed
Model._meta.get_field("field_name")
type inference by @UnknownPlatypus in #2748__init__
calls by @UnknownPlatypus in #2749settings.TEMPLATE
types by @UnknownPlatypus in #2741content_type_extra
containsbytes
, notstr
by @alexmv in #2754reverse_lazy()
by @pgcd in #2766FormMixin.success_url
to_StrOrPromise
by @pgcd in #2769BaseForm.add_error()
in documentation by @CarrotManMatt in #2774OrderedDict
usage, this is the default since py 3.6 by @UnknownPlatypus in #2780get_current_module
util by @UnknownPlatypus in #2781to_attr
inferrence inPrefetch
calls by @UnknownPlatypus in #2779get_class_init_argument_by_name
inresolve_many_to_many_arguments
by @UnknownPlatypus in #2782Model
inference from customQuerySet
/Manager
by @UnknownPlatypus in #2784Prefetch
as generic and do specialization in the plugin by @UnknownPlatypus in #2786Meta.permissions
type by @UnknownPlatypus in #2787prefetch_related
calls by @UnknownPlatypus in #2789TypedModelMeta
by @UnknownPlatypus in #2788.select_related
stubs by @UnknownPlatypus in #2792.prefetch_related(..., to_attr="foo")
conflict with.annotate(foo=...)
by @UnknownPlatypus in #2791to_attr
target (alredy defined fields) by @UnknownPlatypus in #2794order_by
/defer
/only
/distinct
/order_by
/explain
/dates
/datetimes
by @UnknownPlatypus in #2795prefetch_related
types with an overload by @UnknownPlatypus in #2793to_attr
targets by @UnknownPlatypus in #2797select_related
lookups by @UnknownPlatypus in #2806New Contributors
Full Changelog: typeddjango/django-stubs@5.2.2...5.2.3
v5.2.2
Compare Source
What's Changed
reveal_type
to return its argument by @andersk in #2716RawQuerySet
by @youtux in #2718join
toJSONObject
by @sobolevn in #2721QuerySet._raw_delete
by @asottile in #2733resolve_callables
argument type toMapping
by @rodmk in #2735HttpResponse.context_data
by @UnknownPlatypus in #2737django.contrib.auth.forms
by @UnknownPlatypus in #2738.values()
types when expressions are used by @UnknownPlatypus in #2739BasePasswordHasher.safe_summary
commonly usesStrOrPromise
by @jdelic in #2742FormMixin
plugin by @UnknownPlatypus in #2746New Contributors
Full Changelog: typeddjango/django-stubs@5.2.1...5.2.2
v5.2.1
Compare Source
What's Changed
<type> is not present at runtime
errors by @UnknownPlatypus in #2635BaseManager
toManager
to follow runtime behavior by @UnknownPlatypus in #2637django.template.autoreload
by @rafailmdzdv in #2638_UserType
by @asottile in #2645.value
of a Choices variable by @asottile in #2644null
keyword argument toManyToManyField
init by @lev-blit in #2648settings.AUTH_PASSWORD_VALIDATORS
by @UnknownPlatypus in #2652django.http
errors by @UnknownPlatypus in #2654mysqlclient
deps to reveal mysql module stubtest errors by @UnknownPlatypus in #2656django.core.handlers
by @UnknownPlatypus in #2660MediaDefiningClass
by @UnknownPlatypus in #2662uv
to manage dev dependencies by @UnknownPlatypus in #2698django.db.models.expressions.Expression.identity
by @cjwatson in #2685assertFormError
form arg type to BaseForm by @marxide in #2705LogEntryManager.log_actions
by @youtux in #2710New Contributors
Full Changelog: typeddjango/django-stubs@5.2.0...5.2.1
v5.2.0
Compare Source
Important changes
mypy --strict
modemypy
version is updated to1.13
What's Changed
format_lazy
typing by @ashm-dev in #2504_Choices
type by @stianjensen in #2476context_data
attribute to _MonkeyPatchedW/ASGIResponse. by @PacificGilly in #2509type[Model]
does not haveobjects
attribute" by @sobolevn in #2519db.migrations.operations
by @Viicos in #2349select_format()
methods by @adamchainz in #2525django.conf.urls
by @adamchainz in #2528Func.function
by @adamchainz in #2529ClassVar
annotations on mutableModelAdmin
types forruff
by @zyv in #2524ClassVar
annotations onMigration
class attributes by @zyv in #2530Model.[a]save()
signature change by @adamchainz in #2535@contextmanager
by @adamchainz in #2561_Choices
type for forms by @mrgalopes in #2565is_postgresql_*
properties for Django 5.1 by @adamchainz in #2566db_table_comment
to model meta by @ngnpope in #2571BaseModelAdmin.get_inlines()
return type by @MaestroXXXVIII in #2576flatten
andflatten_fieldsets
by @ngnpope in #2572__slotnames__
by @adamchainz in #2584TypedModelMeta
fields by @ngnpope in #2594django.contrib.gis.geoip2
stubs by @ngnpope in #2593django.core.validators
for Django 5.2 by @JaeHyuckSa in #2598django.test.client
anddjango.utils
for Django 5.2 by @JaeHyuckSa in #2599django.contrib.auth.backends
for Django 5.2 by @JaeHyuckSa in #2600django.contrib.auth.models
for Django 5.2 by @JaeHyuckSa in #2601MutableMapping
forForm.Initial
by @UnknownPlatypus in #2604django.contrib.admin
for Django 5.2 by @JaeHyuckSa in #2607django.db.models.sql
for Django 5.2 by @JaeHyuckSa in #2606django.forms.widgets
for Django 5.2 by @federicobond in #2608TypeAlias
es andTypeVar
s for "user" and "any user" by @terencehonles in #2384django.contrib
for Django 5.2 by @JaeHyuckSa in #2611get_select2_language
fromdjango.contrib.admin.widgets
by @michalpokusa in #2612django.core.management.commands
for Django 5.2 by @JaeHyuckSa in #2613<79.0.0
forSETUPTOOLS_ENABLE_FEATURES=legacy-editable
to work by @michalpokusa in #2617Options
fields by @ngnpope in #2627__all__
by @donBarbos in #2624django.http.request.MediaType
by @sobolevn in #2631django.http
module by @sobolevn in #2632django.template.library
by @sobolevn in #2633django.core.serializers
for Django 5.2 by @JaeHyuckSa in #2614New Contributors
Full Changelog: typeddjango/django-stubs@5.1.3...5.2.0
v5.1.3
Compare Source
What's Changed
ContentType
model fields to be infered asAny
, refs #2446 by @sobolevn in #2483@deprecated
based on the review by @sobolevn in #2485null=True
andAny
type param forField
types by @sobolevn in #2492TestCase.assertJSON{Not,}Equal
by @nickstenning in #2497New Contributors
Full Changelog: typeddjango/django-stubs@5.1.2...5.1.3
v5.1.2
Compare Source
What's Changed
.values_list
returns incorrect type for field with same name when selected from related model by @Niicck in #2431ModelAdmin.construct_change_message
by @youtux in #2444contrib.admin.options.ModelAdmin
by @JaeHyuckSa in #2422contrib.gis.gdal.geometries
by @JaeHyuckSa in #2460contrib.admin.models.LogEntryManager
by @JaeHyuckSa in #2423New Contributors
Full Changelog: typeddjango/django-stubs@5.1.1...5.1.2
v5.1.1
Compare Source
What's Changed
BaseEngine.app_dirname
non-optional by @mthuurne in #2394(a)refresh_from_db()
by @jacobtylerwalls in #2402from_string()
andget_template()
return backend-specific template by @mthuurne in #2400get_session_auth_fallback_hash
method to the correct type by @JaeHyuckSa in #2407QuerySet.alias
likeQuerySet.annotate
by @andersk in #2411db.migrations.serializer
by @JaeHyuckSa in #2421django.conf.global_settings
by [@JaeHyuckSaConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.